package etc;

import java.util.Observable;

import network.Netevent;
import network.Netlistener;

public class Logger extends Observable implements Netlistener {
	StringBuilder text;
	
	public void add(String line) {
		this.setChanged();
		this.notifyObservers(line);
	}

	@Override
	public void recieve(Netevent e) {
		if (e.cmd.equals("say")) {
			add(e.rest);
		}
	}
}
